package com.echo.usedsfu.entity;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.NotPersistent;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Information {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long info_id;
	
//	@Persistent
//	private Category info_category;
	
	@Persistent
	private String title;
	
	@Persistent
	private String area;
	
	@Persistent
	private String contact;
	
	@Persistent
	private String description;
	
	@Persistent
	private String phone;
	
	@Persistent
	private String email;
	
	@Persistent
	private Date pub_time;
	
	@Persistent
	private Date expire_time;
	
	@Persistent
	private String img_id;
	
	public Information(String title, String area, String contact, String description, String phone, String email, Date pub_time, 
			Date expire_time, String img_id){
//		this.info_category = info_category;
		this.title = title;
		this.area = area;
		this.contact = contact;
		this.description = description;
		this.phone = phone;
		this.email = email;
		this.pub_time = pub_time;
		this.expire_time = expire_time;
		this.img_id = img_id;
	}



//	public Category getInfo_category() {
//		return info_category;
//	}
//
//	public void setInfo_category(Category info_category) {
//		this.info_category = info_category;
//	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Long getInfo_id() {
		return info_id;
	}

	public void setInfo_id(Long info_id) {
		this.info_id = info_id;
	}

	public Date getPub_time() {
		return pub_time;
	}

	public void setPub_time(Date pub_time) {
		this.pub_time = pub_time;
	}

	public Date getExpire_time() {
		return expire_time;
	}

	public void setExpire_time(Date expire_time) {
		this.expire_time = expire_time;
	}

	public String getImg_id() {
		return img_id;
	}

	public void setImg_id(String img_id) {
		this.img_id = img_id;
	}

	
}
